-- GENERATED SPELL FOR [Elder Springpaw] --


function spell0_15652(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15652', 679, 1)
end

function spell1_15652(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15652', 0, 1)
end

function spell2_15652(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15652', 0, 1)
end

function spell3_15652(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15652', 0, 1)
end

function spell4_15652(pUnit, Event) --@Prowl,Self--
pUnit:FullCastSpellOnTarget(24450,pUnit)
pUnit:RegisterEvent('Sorts_15652', 0, 1)
end

function spell5_15652(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(59881,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15652', 9000, 1)
end

function Sorts_15652(pUnit, Event)
local choix_sorts_15652 = math.random(0, 5)
if choix_sorts_15652 == 0 then
pUnit:RegisterEvent('spell0_15652', 1, 1)
end
if choix_sorts_15652 == 1 then
pUnit:RegisterEvent('spell1_15652', 1, 1)
end
if choix_sorts_15652 == 2 then
pUnit:RegisterEvent('spell2_15652', 1, 1)
end
if choix_sorts_15652 == 3 then
pUnit:RegisterEvent('spell3_15652', 1, 1)
end
if choix_sorts_15652 == 4 then
pUnit:RegisterEvent('spell4_15652', 1, 1)
end
if choix_sorts_15652 == 5 then
pUnit:RegisterEvent('spell5_15652', 1, 1)
end
end

function mob15652_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15652', math.random(1500, 3000), 1)
end

function mob15652_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15652_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15652_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15652, 1, 'mob15652_Action')
RegisterUnitEvent(15652, 2, 'mob15652_Leave')
RegisterUnitEvent(15652, 3, 'mob15652_Kill')
RegisterUnitEvent(15652, 4, 'mob15652_Die')
